// 存数据
const saveStorage = (key: string, value: string) => {
  localStorage.setItem(key, JSON.stringify(value));
};
// 取数据
const getStorage = (key: string) => {
  return JSON.parse(localStorage.getItem(key) as string);
};
// 删数据
const removeStorage = (key: string) => {
  localStorage.removeItem(key);
};
export { saveStorage, getStorage, removeStorage };
